package cn.dao.impl;

import java.util.ArrayList;
import java.util.List;

import cn.bean.Permission;
import cn.dao.PermissionDao;
import cn.dbc.BaseDao;

public class PermissionDaoImpl implements PermissionDao
{

	@Override
	public Permission findPermissionById(int id)
	{
		Permission p=new Permission();
		BaseDao bd=new BaseDao();
		List<Object> lo=new ArrayList<Object>();
		lo.add(id);
		p=(Permission) bd.find("select * from permission where id=?", lo, "cn.bean.Permission").get(0);
		return p;
	}

}
